﻿namespace StarsAdmin.Core.Models
{
    public class CurrentUserDto
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 用户真实姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 用户描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginDateTime { get; set; }

        /// <summary>
        /// 角色标识
        /// </summary>
        public string[] RoleIdentifies { get; set; }

        /// <summary>
        /// 身份验证字段，用于按钮权限
        /// </summary>
        public string[] AuthFields { get; set; }

        /// <summary>
        /// Token
        /// </summary>
        public string? AccessToken { get; set; }

        /// <summary>
        /// 刷新Token
        /// </summary>
        public string? RefreshToken { get; set; }
    }
}